<%-- 
    Document   : index
    Created on : Oct 14, 2014, 9:09:47 PM
    Author     : educacionit
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@page import="com.marcos.util.CreadorDeHTML" %>
<%@page import="java.util.ArrayList"%>
<%@page import="com.marcos.entities.Alumno"%>
<%
    ArrayList losAlumnos = new ArrayList();
    losAlumnos.add( new Alumno("1","Juan","Perez") );
    losAlumnos.add( new Alumno("2","Armando","Quito") );
    losAlumnos.add( new Alumno("3","Sandro","Roldan") );
    losAlumnos.add( new Alumno("4","Javier","Finol") );
    losAlumnos.add( new Alumno("5","Esteban","Fuertes") );
    
    // Construye el encabezado
    String[] losCampos = {"Id", "Nombre", "Apellido"};
%>

<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        <h1>Hello World!</h1>
        <% out.println(CreadorDeHTML.getComboDeAlumnos(losAlumnos)); %>
        <% out.println(CreadorDeHTML.getTablaDeAlumnos(losAlumnos, losCampos)); %>
        
        </table>
    </body>
</html>
